how to plot two columns graphs in python

22

how to plot two columns graphs in python -

df.plot(x='col_name_1', y='col_name_2')

multiple plot in one figure python -

import matplotlib.pyplot as plt

plt.plot(<X AXIS VALUES HERE>, <Y AXIS VALUES HERE>, 'line type', label='label here')
plt.plot(<X AXIS VALUES HERE>, <Y AXIS VALUES HERE>, 'line type', label='label here')
plt.legend(loc='best')
plt.show()

Comments

Submit
0 Comments